package com.bawei.park2211a.adapter

import com.bawei.base.bean.HomeEntity
import com.bawei.park2211a.R
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class HomeAdapter:BaseQuickAdapter<HomeEntity,BaseViewHolder>(R.layout.item_homerec) {
    override fun convert(helper: BaseViewHolder, item: HomeEntity) {
        Glide.with(context).load(item.id).into(helper.getView(R.id.home_icon))
        helper.setText(R.id.home_title,item.title)
    }
}